﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentacion/MasterPage/MasterPage.Master" AutoEventWireup="true" CodeBehind="GestionarNota.aspx.cs" Inherits="vudu.Presentacion.Vista.VU_08_Gestionar_Notas_de_Estudiantes.GestionarNota" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .style13
        {
            width: 95px;
        }
        .style16
        {
            width: 150px;
        }
        .style17
        {
        }
        .style18
        {
            width: 275px;
        }
        .style21
        {
            width: 277px;
            height: 17px;
        }
        .style22
        {
            width: 215px;
            height: 17px;
        }
        .style23
        {
            width: 277px;
            height: 9px;
        }
        .style24
        {
            width: 215px;
            height: 9px;
        }
        .style25
        {
            width: 235px;
            height: 15px;
        }
        .style26
        {
            width: 215px;
            height: 15px;
        }
        .style27
        {
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            -webkit-box-shadow: 1px 1px 3px #888;
            -moz-box-shadow: 1px 1px 3px #888;
            }
        .style29
        {
            width: 352px;
        }
        .style30
        {
            width: 277px;
            height: 2px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table style="border-style: solid; border-width: 1px; width: 100%;">
        <tr>
            <td>
                <table style="width: 100%" >
    <tr>
        <td class="style29">
            &nbsp;</td>
        <td align="right" colspan="2">
                <asp:Label ID="infoUsuario" runat="server" 
                    Text="" CssClass="migaActual"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style29">
            &nbsp;</td>
        <td style="width: 350px" align="center">
            <h2 class="tituloGeneral">Gestionar Notas</h2>
        </td>
        <td style="width: 250px">
        </td>
    </tr>
    <tr>
        <td class="style29">
        </td>
        <td style="width: 350px" align="center">
            <div id="divMensajeFinal" class="transaccionExitosa" runat="server"> Se ha actualizado las notas con Exito!</div>
            <div id="divMensajeError" class="transaccionFallida" runat="server"> Ha Ocurrido un error al realizar la operación</div>
        </td>
        <td style="width: 250px">
        <br/>
        </td>
    </tr>
</table>
    
        <fieldset style="horiz-align: center;"><legend>Gestionar Nota&nbsp;</legend>
        <div align="center">
        <table style="width: 42%">
            <tr>
                <td class="style23">Materia:</td>
                <td class="style24">
                    <asp:DropDownList ID="cbMateria" runat="server" Height="23px" Width="200px" 
                       AutoPostBack="true" onselectedindexchanged="CbMateriaSelectedIndexChanged"> 
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style21">
                    Sección:</td>
                <td class="style22">
                    <asp:DropDownList ID="cbSeccion" runat="server"  Height="23px" Width="200px"  
                        AutoPostBack="true" onselectedindexchanged="CbSeccionSelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style30">Evaluación:</td>
                <td class="style26">
                    <asp:DropDownList ID="cbEvaluacion" runat="server"  Height="23px" Width="200px"  
                        AutoPostBack="true" 
                        onselectedindexchanged="CbEvaluacionSelectedIndexChanged" >
                    </asp:DropDownList>
                    <br/>
                </td>
            </tr>
            </table>
            </div>
    <br />
</fieldset>
    <p align="center">
        <table style="width:100%;">
            <tr>
                <td class="style27" align="center">
                    <asp:Button ID="Button2" CssClass="boton" runat="server" Text="Aceptar" 
                        ValidationGroup="a" onclick="Button2Click" />
                    </td>
            </tr>
            </table>
            <div id="panelLista" align="center" runat="server">
            <fieldset style="horiz-align: center;" id="panelBusqueda" runat="server"><legend>Listar Notas&nbsp;</legend>
            <br/>
            <div id="panelNombreProfesor" align="left" runat="server">
                <asp:Label ID="lbNombreProfesor" runat="server" Visible="False" Text=""></asp:Label></div>

            <asp:GridView ID="listaMateria" AutoGenerateColumns="False" runat="server"
                selectedindex="0" runat="server" PageSize="8"
                HorizontalAlign="Center" Width="722px" CellPadding="4"
                ForeColor="#333333"
                GridLines="None" AllowPaging="True">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
	            <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#999999" />

	            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
	            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
	            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
	            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
	            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#F7F6F3" ForeColor="#333333" />
	            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
	            <SortedAscendingCellStyle BackColor="#E9E7E2" />
	            <SortedAscendingHeaderStyle BackColor="#506C8C" />
	            <SortedDescendingCellStyle BackColor="#FFFDF8" />
	            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                <Columns>
                    <asp:BoundField AccessibleHeaderText="cedula" DataField="Cedula" 
                        HeaderText="Cedula" />
                    <asp:BoundField AccessibleHeaderText="nombre" DataField="Nombre" 
                        HeaderText="Nombre" />
                    <asp:BoundField AccessibleHeaderText="correo" DataField="Correo" 
                        HeaderText="Correo" />
                    <asp:BoundField AccessibleHeaderText="telefono" DataField="Telefono" 
                        HeaderText="Telefono" />
                    <asp:templatefield headertext="Nota" ItemStyle-HorizontalAlign="Center"
                        itemstyle-verticalalign="Middle">

                        <ItemTemplate>
                          <asp:textbox id="nota" Font-Size="16px"
                            text='<%#Bind("Nota")%>'
                            width="18"
                            MaxLength="2"
                            runat="server"/>                                 
                        </ItemTemplate>

                      </asp:templatefield>
                </Columns>
            </asp:GridView>
            </fieldset>
            <div align="center">
                <asp:Button ID="aceptarListaNota" CssClass="boton" runat="server" 
                    Text="Aceptar" onclick="AceptarListaNotaClick" /></div>
                    </div>
    </table>
</asp:Content>
